package com.gxa.modules.app.hospital.health.notice.controller;

import com.gxa.common.utils.Result;
import com.gxa.modules.app.hospital.health.notice.mapper.NoticeMapper;
import com.gxa.modules.model.dto.NoticeDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * <p>
 * 预约须知表 前端控制器
 * </p>
 *
 * @author lst
 * @since 2022-11-14 09:05:41
 */
@Api(tags = "预约须知")
@RestController
@RequestMapping("/notice")
public class NoticeController {

    @Autowired
    private NoticeMapper noticeMapper;
    @ApiOperation("预约须知")
    @GetMapping("/queryByNotice/{id}")
    public Result<NoticeDto> queryByNotice(@PathVariable("id") Integer id) {

        return new  Result().ok(noticeMapper.queryByNotice(id));
    }

}
